<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<link rel="stylesheet" href="/dacan/Public/Admin/css/base.css" />
	<link rel="stylesheet" href="/dacan/Public/Admin/css/info-reg.css" />
	<title></title>
</head>

<body>
<div class="title"><h2>添加机械类型</h2></div>
<form action="addtypeinfo" method="post">
	<div class="main">
		<p class="short-input ue-clear">
			<label>产品类别名称</label>
			<input type="text" name="tname" placeholder="产品类别名称" />
		</p>
		<p class="short-input ue-clear">
			<label>备注：</label>
			<textarea placeholder="备注" name="tcontent"></textarea>
		</p>
	</div>
	<div class="btn ue-clear">
		<a href="javascript:;" class="confirm">确定</a>
		<a href="javascript:;" class="clear">清空内容</a>
	</div>
</form>
</body>
<script type="text/javascript" src="/dacan/Public/Admin/js/jquery.js"></script>
<script type="text/javascript" src="/dacan/Public/Admin/js/common.js"></script>
<script type="text/javascript" src="/dacan/Public/Admin/js/WdatePicker.js"></script>
<script type="text/javascript">
	$(".select-title").on("click",function(){
		$(".select-list").toggle();
		return false;
	});
	$(".select-list").on("click","li",function(){
		var txt = $(this).text();
		$(".select-title").find("span").text(txt);
	});
	$(function(){
		//给确定按钮绑定一个点击事件
		$('.confirm').on('click',function(){
			//事件的处理程序
			$('form').submit();
		});

		//给清空内容按钮绑定一个点击事件
		$('.clear').on('click',function(){
			//事件的处理程序
			$('form')[0].reset();
		});
	});

	showRemind('input[type=text], textarea','placeholder');
</script>
</html>